
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
      <%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Seller</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="iecss.css" />
<![endif]-->
<%@page import="java.sql.*"%>
<script language="javascript" type="text/javascript">  
      var xmlHttp  
      var xmlHttp
      function showState(str){
      if (typeof XMLHttpRequest != "undefined"){
      xmlHttp= new XMLHttpRequest();
      }
      else if (window.ActiveXObject){
      xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
      }
      if (xmlHttp==null){
      alert("Browser does not support XMLHTTP Request")
      return;
      } 
      var url="sub_category.jsp";
      url +="?count=" +str;
      xmlHttp.onreadystatechange = stateChange;
      xmlHttp.open("GET", url, true);
      xmlHttp.send(null);
      }

      function stateChange(){   
      if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){   
      document.getElementById("sub_category").innerHTML=xmlHttp.responseText   
      }   
      }
      </script>  


<script type="text/javascript" src="js/boxOver.js"></script>
<script>
PositionX = 100;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}

</script>
<style type="text/css">
<!--
.style1 {font-size: 14px}
.style2 {
	font-size: 16px;
	font-weight: bold;
}
.style3 {font-size: 11px}
.style4 {color: #00FF00}
.style5 {color: #000000}
-->
</style>
</head>
<body>

<div id="main_container">

	<div id="header">

      <div class="top_right">
       
           
            <div class="big_banner">
           
            </div>
        
      </div>
    
  
        <div id="logo"><a href="index.html"><img src="images/logoEbay_x45.gif" alt="" title="" border="0" width="130" height="31" /></a></div>
        

        

    </div>
    
  <div id="main_content"> 
   
            <div id="menu_tab">
                    <ul class="menu">
                         <li><a href="index.html" class="nav">  Home </a></li>
                         <li class="divider"></li>
                         <li><a href="#" class="nav">Products</a></li>
                         <li class="divider"></li>
                         <li><a href="#" class="nav">Specials</a></li>
                         <li class="divider"></li>
                         <li><a href="#" class="nav">My account</a></li>
                         <li class="divider"></li>
                         <li><a href="#" class="nav">Sign Up</a></li>
                         <li class="divider"></li>                         
                         <li><a href="#" class="nav">Shipping </a></li>
                         <li class="divider"></li>
                         <li><a href="contact.html" class="nav">Contact Us</a></li>

                    </ul>

            </div><!-- end of menu tab -->
            
    <div class="crumb_navigation">
  
    
    </div>        
        
        
	 
    <h3><strong>Welcome Sellers! </strong></h3>
	<hr />
	<div height="320" width="250" border="2px">
							
							<div class="secTab"><div class="idt"><label for="fcat"><strong>Categories</strong></label>
							<div id="ariabrowse" ></div></div><div class="idtHrz" id="categories_fldSet"><div></div><div id="catboxes_inpGrp"><table cellpadding="0" cellspacing="0" border="0" summary=""><tr id="catboxes_row_1"><td width="244" valign="top"><div id="fcat_inp" class="idtRgt">
							 <s:form action="sellerlisting.jsp" name="form1">  
							  <select name="category" onchange="showState(this.value)" multiple="">
							    
							    <%
 Class.forName("com.mysql.jdbc.Driver").newInstance();  
 Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/ebay","root","bhaguji");  
 Statement stmt = con.createStatement();  
 ResultSet rs = stmt.executeQuery("Select * from category");
 while(rs.next()){
     %>
      <option value="<%=rs.getString(1)%>;<%=rs.getString(2)%>"><%=rs.getString(2)%></option>  
      <%
 }
     %>
							    
						      </select>
							  </div></td><td width="1" valign="top"><span id="lyr_fcat"></span></td>
							  <td width="244">
							  
							  <div id='sub_category'>  
							  <select name='sub_category' multiple="">
							  </select>
							  </div>
							  
							  </td>
							  
							  
							  </tr>
							  
							  <br></br>
							  <tr>
							  
							  
							  </tr>
							  </table>
							 
							</div></div></div>
  </div><!-- end of main content -->
  
  
  <%--  <%
   String category=request.getParameter("category");
   String sub_category=request.getParameter("sub_category");
   String url="sellerlisting.jsp?category="+category+"&sub_category="+sub_category; %>
   <div align="center"> 
					        <a href=url class="prod_details" >CONTINUE</a></div>
					        
	 --%>				        
	 
	 <!-- <a href="sellerlisting.jsp" class="prod_details">CONTINUE</a> -->
	
	 <s:submit name="submit" vaue="submit" theme="simple"></s:submit>
	 
   <br />
   <br />
   
     <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        
        </s:form>
        
   <div class="footer">
   

        <div class="left_footer"></div>
        
        <div class="center_footer">
        <br />
        <a href="http://csscreme.com/freecsstemplates/" title="free css templates"><img src="images/csscreme.jpg" alt="free css templates" border="0" /></a><br />
        <img src="images/payment.gif" alt="" title="" />
        </div>
        
        <div class="right_footer">
        <a href="index.html">home</a>
        <a href="details.html">about</a>
        <a href="details.html">sitemap</a>
        <a href="details.html">rss</a>
        <a href="contact.html">contact us</a>
        </div>   
   
   </div>                 


</div>
<!-- end of main_container -->
</body>
</html>